package com.maimao.api.mall.goods;

import com.maimao.core.model.resp.Result;
import com.maimao.model.common.StatusInput;
import com.maimao.model.goods.SpecGroup;
import com.maimao.model.goods.input.SpecOrderInput;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
 * @author MaoLin Wang
 * @date 2020/12/11 8:15 下午
 */
@Api(value = "商品规格接口")
@RequestMapping("/goods/specGroup")
public interface SpecGroupApi {

    @ApiOperation("根据三级分类查询规格组")
    Result<?> selectGroupByCid3(Integer cid3);

    @ApiOperation("修改规格组的位置(排序)")
    Result<?> moveGroupOrder(SpecOrderInput input);

    @ApiOperation("修改规格组的名称")
    Result<?> updateGroupName(SpecGroup specGroup);

    @ApiOperation("添加规格组")
    Result<?> addGroup(SpecGroup specGroup, BindingResult bindingResult);

    @ApiOperation("修改规格组")
    Result<?> updateGroup(SpecGroup specGroup, BindingResult bindingResult);
}